package com.example.controller;

import com.example.service.InfoAttachmentService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author  me
 */
@RestController
@RequestMapping("api/infoattachment")
public class InfoAttachmentController {
    @Autowired
    InfoAttachmentService infoAttachmentService;

    @ApiOperation(value = "查询信息", notes = "查询信息")
    @RequestMapping(value = "querybytype/", method = RequestMethod.POST)
    Map<String, Object> queryByType(@RequestBody Map map) { return infoAttachmentService.queryByType(map); }

}
